
from django.conf.urls.defaults import patterns
    
urlpatterns = patterns('',
    (r'^listar/ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',                      'wal.insumos.views.listar'),
    (r'^ver/(?P<object_id>\d+)/$',                  'wal.insumos.views.ver'),
    (r'^crear/$',                                   'wal.insumos.views.crear'),
    (r'^editar/(?P<object_id>\d+)/$',               'wal.insumos.views.editar'),
#    (r'^borrar/p=(?P<object_id>\d+)&ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',                'wal.insumos.views.borrar'),
    
    (r'^entradas/listar/ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',                      'wal.insumos.views.listarEntradas'),
    (r'^entradas/crear/$',                                   'wal.insumos.views.crearEntrada'),
    (r'^entradas/borrar/p=(?P<object_id>\d+)&ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',      'wal.insumos.views.borrarEntrada'),
    
    (r'^salidas/listar/ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',                      'wal.insumos.views.listarSalidas'),
    (r'^salidas/crear/$',                                   'wal.insumos.views.crearSalida'),
    (r'^salidas/borrar/p=(?P<object_id>\d+)&ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',      'wal.insumos.views.borrarSalida'),
    
    (r'^stock/ot=(?P<ot>\w+)&o=(?P<o>\d+)&page=(?P<page>\d+)/$',                      'wal.insumos.views.verStock'),
    
    )
 
    